<?php
//if (!defined('MY_MEMORY_CHECK')) define('MY_MEMORY_CHECK', 0);//NE+
/**
 * @file
 * @brief The page controller in the directory
 * @package mileage
 * @version $Id$
**/

require_once '../../../mainfile.php';


//NE+ ***************************************************
/*$GLOBALS["MY_OUTPUT"] = '';
if ((MY_MEMORY_CHECK === 1 || (is_object($xoopsUser) && $xoopsUser->isAdmin())) && function_exists('memory_get_usage') && function_exists('memory_get_peak_usage')) {
	list($usec, $sec) = explode(' ', microtime());
	$GLOBALS["MY_BENCH_ST"] = $usec + $sec;
	$GLOBALS["MY_MEMORY"][] =  memory_get_usage();
	$GLOBALS["MY_MEMORY"][] =  memory_get_usage(TRUE);
	$GLOBALS["MY_MEMORY"][] =  memory_get_peak_usage();
	$GLOBALS["MY_MEMORY"][] =  memory_get_peak_usage(TRUE);
}*/
//NE+ ***************************************************


$mydirname = basename(dirname(dirname(__FILE__)));
require realpath(dirname(__FILE__)) . '/../mytrustdirname.php';
require_once XOOPS_TRUST_PATH . '/modules/' . $mytrustdirname . '/admin/index.php';


//NE+ ***************************************************
/*if ((MY_MEMORY_CHECK === 1 || (is_object($xoopsUser) && $xoopsUser->isAdmin())) && function_exists('memory_get_usage') && function_exists('memory_get_peak_usage')) {
	foreach ($GLOBALS["MY_MEMORY"] as $m) {
		echo intval($m), ' / ';
	}
	echo '<br />';
	echo memory_get_usage(), ' / ';
	echo memory_get_usage(TRUE), ' / ';
	echo memory_get_peak_usage(), ' / ';
	echo memory_get_peak_usage(TRUE), ' / ';
	list($usec, $sec) = explode(' ', microtime());
	$endtime = $usec + $sec;
	echo $endtime - $GLOBALS["MY_BENCH_ST"], '<br />';
	my_exit();
}
function my_output($file=NULL, $line=NULL, $var='my_output')
{
	static $count = 1;
	ob_start();
	if ($var !== 'my_output') {
		var_dump($var);
	}
	$GLOBALS["MY_OUTPUT"] .= $count++ .': ';
	if (is_object($var) || is_array($var)) $GLOBALS["MY_OUTPUT"] .= '<pre>';
	$GLOBALS["MY_OUTPUT"] .= htmlspecialchars(ob_get_contents(), ENT_QUOTES);
	if (is_object($var) || is_array($var)) $GLOBALS["MY_OUTPUT"] .= '</pre>';
	$GLOBALS["MY_OUTPUT"] .= ' : '. $file .' : '. $line . '<br />';
	ob_end_clean();
}

function my_exit(){
	if (isset($GLOBALS["MY_OUTPUT"]) && !empty($GLOBALS["MY_OUTPUT"])) echo $GLOBALS["MY_OUTPUT"], '<br />';
	exit;
}*/
//NE+ ***************************************************
